package com.mall.common.util;

public class PageUtil {
	
	public static final int PAGE_SIZE_DISCOVER = 2;//发现专题数量
	public static final int PAGE_SIZE = 20;
	public static final int PAGE_SIZE_COMMENT = 3;
	public static final int PAGE_SIZE_APP = 10;
	public static final int PAGE_SIZE_MALL = 50;
	public static final int PAGE_SIZE_ESHOPLIST = 10;
	public static final int PAGE_SIZE_ESHOPCOLLECTION = 3;
	public static int getPageNO(int totalRecord, int pageSize) {
		return (totalRecord + pageSize - 1) / pageSize;
	}
	
}
